-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #1512, don't save edits with no clips #1517
base: main
Are you sure you want to change the base?
Conversation
This pull request has conflicts ☹ |
This pull request is deployed at test.editor.opencast.org/1517/2024-12-11_11-36-08/ . |
ab919e8
to
f0c2479
Compare
This pull request is deployed at test.editor.opencast.org/1517/2024-12-11_11-41-22/ . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've found some things that I believe should be addressed before merging.
I'm not happy with how we present the user with the problem. Simply replacing the usual save text with a warning is not obvious at first glance and does not really make clear that it is supposed to be warning. Maybe keeping the usual text and instead adding a warning box would be better? (Could use the error boxes from appkit for that hint hint #1392). I would also prefer to keep rendering the save button, but disable it.
Agree with using the error boxes. But disabling buttons is not meant to be good accessible UX design - also I did try but as they are not form elements, disabling doesn't work. The |
This pull request is deployed at test.editor.opencast.org/1517/2024-12-18_14-09-53/ . |
Before allowing the edits to be saved/processed, check that there isn't a single segment that deletes the whole video. Otherwise Opencast will create a SMIL file with not clips and the editor WOH will fail.